.class public Limoblife/yogamoment/lite/RegisterActivity;
.super Landroid/app/Activity;
.source "RegisterActivity.java"


# instance fields
.field private imei:Ljava/lang/String;

.field private number:Landroid/widget/TextView;


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 19
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    return-void
.end method


# virtual methods
.method public codeverify(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 12
    .parameter "uid"
    .parameter "code"

    .prologue
    .line 123
    const-wide/16 v4, 0x0

    .line 125
    .local v4, int_imei:J
    const-string v8, "A"

    invoke-virtual {p1, v8}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v8

    if-nez v8, :cond_0

    const-string v8, "a"

    invoke-virtual {p1, v8}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v8

    if-nez v8, :cond_0

    const-string v8, "B"

    invoke-virtual {p1, v8}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v8

    if-nez v8, :cond_0

    .line 126
    const-string v8, "b"

    invoke-virtual {p1, v8}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v8

    if-nez v8, :cond_0

    const-string v8, "C"

    invoke-virtual {p1, v8}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v8

    if-nez v8, :cond_0

    const-string v8, "c"

    invoke-virtual {p1, v8}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v8

    if-nez v8, :cond_0

    .line 127
    const-string v8, "D"

    invoke-virtual {p1, v8}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v8

    if-nez v8, :cond_0

    const-string v8, "d"

    invoke-virtual {p1, v8}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v8

    if-nez v8, :cond_0

    const-string v8, "E"

    invoke-virtual {p1, v8}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v8

    if-nez v8, :cond_0

    .line 128
    const-string v8, "e"

    invoke-virtual {p1, v8}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v8

    if-nez v8, :cond_0

    const-string v8, "F"

    invoke-virtual {p1, v8}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v8

    if-nez v8, :cond_0

    const-string v8, "f"

    invoke-virtual {p1, v8}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v8

    if-eqz v8, :cond_1

    .line 130
    :cond_0
    new-instance v8, Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v9

    const/4 v10, 0x4

    sub-int/2addr v9, v10

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v10

    invoke-virtual {p1, v9, v10}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v9

    invoke-static {v9}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v9

    invoke-direct {v8, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 131
    const/4 v9, 0x2

    const/4 v10, 0x6

    invoke-virtual {p1, v9, v10}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    .line 130
    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 132
    invoke-virtual {p0, p1}, Limoblife/yogamoment/lite/RegisterActivity;->toHexString(Ljava/lang/String;)J

    move-result-wide v4

    .line 134
    invoke-static {v4, v5}, Ljava/lang/Long;->toString(J)Ljava/lang/String;

    move-result-object v0

    .line 135
    .local v0, Simei:Ljava/lang/String;
    const/4 v8, 0x0

    const/16 v9, 0x8

    invoke-virtual {v0, v8, v9}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    .line 137
    invoke-static {v0}, Ljava/lang/Long;->valueOf(Ljava/lang/String;)Ljava/lang/Long;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/Long;->longValue()J

    move-result-wide v4

    .line 147
    .end local v0           #Simei:Ljava/lang/String;
    :goto_0
    const-wide/32 v8, 0x989680

    rem-long v8, v4, v8

    const-wide/16 v10, 0x13c

    add-long/2addr v8, v10

    const-wide/16 v10, 0x4f

    mul-long/2addr v8, v10

    const-wide/16 v10, 0x20

    div-long/2addr v8, v10

    const-wide/32 v10, 0x5f5e100

    rem-long v6, v8, v10

    .line 148
    .local v6, key:J
    const-wide/16 v2, 0x0

    .line 150
    .local v2, int_code:J
    :try_start_0
    invoke-static {p2}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/Integer;->intValue()I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v8

    int-to-long v2, v8

    .line 155
    cmp-long v8, v6, v2

    if-nez v8, :cond_2

    .line 156
    const/4 v8, 0x1

    .line 158
    :goto_1
    return v8

    .line 140
    .end local v2           #int_code:J
    .end local v6           #key:J
    :cond_1
    new-instance v8, Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v9

    const/4 v10, 0x4

    sub-int/2addr v9, v10

    .line 141
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v10

    invoke-virtual {p1, v9, v10}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v9

    invoke-static {v9}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v9

    invoke-direct {v8, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 142
    const/4 v9, 0x2

    const/4 v10, 0x6

    invoke-virtual {p1, v9, v10}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    .line 140
    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-static {v8}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/Integer;->intValue()I

    move-result v8

    int-to-long v4, v8

    goto :goto_0

    .line 151
    .restart local v2       #int_code:J
    .restart local v6       #key:J
    :catch_0
    move-exception v8

    move-object v1, v8

    .line 152
    .local v1, e:Ljava/lang/Exception;
    const/4 v8, 0x0

    goto :goto_1

    .line 158
    .end local v1           #e:Ljava/lang/Exception;
    :cond_2
    const/4 v8, 0x0

    goto :goto_1
.end method

.method public connection()V
    .locals 12

    .prologue
    .line 51
    const-string v2, ""

    .line 52
    .local v2, message:Ljava/lang/String;
    const-string v7, ""

    .line 54
    .local v7, title:Ljava/lang/String;
    :try_start_0
    iget-object v9, p0, Limoblife/yogamoment/lite/RegisterActivity;->number:Landroid/widget/TextView;

    invoke-virtual {v9}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v9

    invoke-interface {v9}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/String;->length()I

    move-result v9

    const/16 v10, 0xf

    if-ne v9, v10, :cond_2

    .line 56
    new-instance v8, Ljava/net/URL;

    .line 57
    new-instance v9, Ljava/lang/StringBuilder;

    const-string v10, "http://downloadandroid.info/register/moment/register.php?regcode="

    invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 58
    iget-object v10, p0, Limoblife/yogamoment/lite/RegisterActivity;->number:Landroid/widget/TextView;

    invoke-virtual {v10}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v10

    invoke-interface {v10}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/String;->toUpperCase()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    .line 57
    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    .line 56
    invoke-direct {v8, v9}, Ljava/net/URL;-><init>(Ljava/lang/String;)V

    .line 60
    .local v8, url:Ljava/net/URL;
    invoke-virtual {v8}, Ljava/net/URL;->openConnection()Ljava/net/URLConnection;

    move-result-object v1

    .line 59
    check-cast v1, Ljava/net/HttpURLConnection;

    .line 61
    .local v1, http:Ljava/net/HttpURLConnection;
    const-string v3, ""

    .line 62
    .local v3, result:Ljava/lang/String;
    invoke-virtual {v1}, Ljava/net/HttpURLConnection;->getResponseCode()I

    move-result v5

    .line 63
    .local v5, state:I
    const/16 v9, 0xc8

    if-ne v5, v9, :cond_1

    .line 64
    const-string v9, "rc"

    invoke-virtual {v1, v9}, Ljava/net/HttpURLConnection;->getHeaderField(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 65
    const-string v9, "S"

    invoke-virtual {v3, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_0

    .line 66
    const v9, 0x7f050001

    invoke-virtual {p0, v9}, Limoblife/yogamoment/lite/RegisterActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    .line 67
    const/high16 v9, 0x7f05

    invoke-virtual {p0, v9}, Limoblife/yogamoment/lite/RegisterActivity;->getString(I)Ljava/lang/String;

    move-result-object v7

    .line 69
    const-string v9, "ob_SharedPreferences"

    const/4 v10, 0x0

    invoke-virtual {p0, v9, v10}, Limoblife/yogamoment/lite/RegisterActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v4

    .line 70
    .local v4, sharedprferences:Landroid/content/SharedPreferences;
    invoke-interface {v4}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v9

    const-string v10, "isRegister"

    const/4 v11, 0x1

    invoke-interface {v9, v10, v11}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    move-result-object v9

    .line 71
    invoke-interface {v9}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 80
    .end local v4           #sharedprferences:Landroid/content/SharedPreferences;
    :goto_0
    invoke-virtual {v1}, Ljava/net/HttpURLConnection;->disconnect()V

    .line 94
    .end local v1           #http:Ljava/net/HttpURLConnection;
    .end local v3           #result:Ljava/lang/String;
    .end local v5           #state:I
    .end local v8           #url:Ljava/net/URL;
    :goto_1
    move-object v6, v2

    .line 95
    .local v6, str:Ljava/lang/String;
    new-instance v9, Landroid/app/AlertDialog$Builder;

    invoke-direct {v9, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    invoke-virtual {v9, v7}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v9

    invoke-virtual {v9, v2}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v9

    .line 96
    const v10, 0x7f050017

    .line 97
    new-instance v11, Limoblife/yogamoment/lite/RegisterActivity$3;

    invoke-direct {v11, p0, v6}, Limoblife/yogamoment/lite/RegisterActivity$3;-><init>(Limoblife/yogamoment/lite/RegisterActivity;Ljava/lang/String;)V

    .line 96
    invoke-virtual {v9, v10, v11}, Landroid/app/AlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v9

    .line 107
    invoke-virtual {v9}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;

    .line 120
    .end local v6           #str:Ljava/lang/String;
    :goto_2
    return-void

    .line 73
    .restart local v1       #http:Ljava/net/HttpURLConnection;
    .restart local v3       #result:Ljava/lang/String;
    .restart local v5       #state:I
    .restart local v8       #url:Ljava/net/URL;
    :cond_0
    const v9, 0x7f050003

    invoke-virtual {p0, v9}, Limoblife/yogamoment/lite/RegisterActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    .line 74
    const v9, 0x7f050002

    invoke-virtual {p0, v9}, Limoblife/yogamoment/lite/RegisterActivity;->getString(I)Ljava/lang/String;

    move-result-object v7

    goto :goto_0

    .line 77
    :cond_1
    const v9, 0x7f050005

    invoke-virtual {p0, v9}, Limoblife/yogamoment/lite/RegisterActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    .line 78
    const v9, 0x7f050004

    invoke-virtual {p0, v9}, Limoblife/yogamoment/lite/RegisterActivity;->getString(I)Ljava/lang/String;

    move-result-object v7

    goto :goto_0

    .line 82
    .end local v1           #http:Ljava/net/HttpURLConnection;
    .end local v3           #result:Ljava/lang/String;
    .end local v5           #state:I
    .end local v8           #url:Ljava/net/URL;
    :cond_2
    iget-object v9, p0, Limoblife/yogamoment/lite/RegisterActivity;->imei:Ljava/lang/String;

    iget-object v10, p0, Limoblife/yogamoment/lite/RegisterActivity;->number:Landroid/widget/TextView;

    invoke-virtual {v10}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v10

    invoke-interface {v10}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {p0, v9, v10}, Limoblife/yogamoment/lite/RegisterActivity;->codeverify(Ljava/lang/String;Ljava/lang/String;)Z

    move-result v9

    if-eqz v9, :cond_3

    .line 83
    const v9, 0x7f050001

    invoke-virtual {p0, v9}, Limoblife/yogamoment/lite/RegisterActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    .line 84
    const/high16 v9, 0x7f05

    invoke-virtual {p0, v9}, Limoblife/yogamoment/lite/RegisterActivity;->getString(I)Ljava/lang/String;

    move-result-object v7

    .line 86
    const-string v9, "ob_SharedPreferences"

    const/4 v10, 0x0

    invoke-virtual {p0, v9, v10}, Limoblife/yogamoment/lite/RegisterActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v4

    .line 87
    .restart local v4       #sharedprferences:Landroid/content/SharedPreferences;
    invoke-interface {v4}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v9

    const-string v10, "isRegister"

    const/4 v11, 0x1

    invoke-interface {v9, v10, v11}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    move-result-object v9

    .line 88
    invoke-interface {v9}, Landroid/content/SharedPreferences$Editor;->commit()Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    .line 108
    .end local v4           #sharedprferences:Landroid/content/SharedPreferences;
    :catch_0
    move-exception v9

    move-object v0, v9

    .line 109
    .local v0, e:Ljava/lang/Exception;
    const-string v9, "d"

    invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 110
    const v9, 0x7f050005

    invoke-virtual {p0, v9}, Limoblife/yogamoment/lite/RegisterActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    .line 111
    const v9, 0x7f050004

    invoke-virtual {p0, v9}, Limoblife/yogamoment/lite/RegisterActivity;->getString(I)Ljava/lang/String;

    move-result-object v7

    .line 112
    new-instance v9, Landroid/app/AlertDialog$Builder;

    invoke-direct {v9, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    invoke-virtual {v9, v7}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v9

    invoke-virtual {v9, v2}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v9

    .line 113
    const v10, 0x7f050017

    .line 114
    new-instance v11, Limoblife/yogamoment/lite/RegisterActivity$4;

    invoke-direct {v11, p0}, Limoblife/yogamoment/lite/RegisterActivity$4;-><init>(Limoblife/yogamoment/lite/RegisterActivity;)V

    .line 113
    invoke-virtual {v9, v10, v11}, Landroid/app/AlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v9

    .line 118
    invoke-virtual {v9}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;

    goto/16 :goto_2

    .line 90
    .end local v0           #e:Ljava/lang/Exception;
    :cond_3
    const v9, 0x7f050003

    :try_start_1
    invoke-virtual {p0, v9}, Limoblife/yogamoment/lite/RegisterActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    .line 91
    const v9, 0x7f050002

    invoke-virtual {p0, v9}, Limoblife/yogamoment/lite/RegisterActivity;->getString(I)Ljava/lang/String;
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    move-result-object v7

    goto/16 :goto_1
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 5
    .parameter "savedInstanceState"

    .prologue
    .line 24
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 25
    const v3, 0x7f030007

    invoke-virtual {p0, v3}, Limoblife/yogamoment/lite/RegisterActivity;->setContentView(I)V

    .line 26
    const v3, 0x7f080037

    invoke-virtual {p0, v3}, Limoblife/yogamoment/lite/RegisterActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    iput-object v3, p0, Limoblife/yogamoment/lite/RegisterActivity;->number:Landroid/widget/TextView;

    .line 27
    const v3, 0x7f080036

    invoke-virtual {p0, v3}, Limoblife/yogamoment/lite/RegisterActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    .line 28
    .local v2, textView:Landroid/widget/TextView;
    const-string v3, "phone"

    invoke-virtual {p0, v3}, Limoblife/yogamoment/lite/RegisterActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/telephony/TelephonyManager;

    .line 29
    .local v1, telephonyManager:Landroid/telephony/TelephonyManager;
    invoke-virtual {v1}, Landroid/telephony/TelephonyManager;->getDeviceId()Ljava/lang/String;

    move-result-object v3

    iput-object v3, p0, Limoblife/yogamoment/lite/RegisterActivity;->imei:Ljava/lang/String;

    .line 30
    iget-object v3, p0, Limoblife/yogamoment/lite/RegisterActivity;->imei:Ljava/lang/String;

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 31
    const v3, 0x7f080038

    invoke-virtual {p0, v3}, Limoblife/yogamoment/lite/RegisterActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    .line 32
    .local v0, button:Landroid/widget/Button;
    new-instance v3, Limoblife/yogamoment/lite/RegisterActivity$1;

    invoke-direct {v3, p0}, Limoblife/yogamoment/lite/RegisterActivity$1;-><init>(Limoblife/yogamoment/lite/RegisterActivity;)V

    invoke-virtual {v0, v3}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 37
    const v3, 0x7f080039

    invoke-virtual {p0, v3}, Limoblife/yogamoment/lite/RegisterActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/Button;

    .line 38
    new-instance v4, Limoblife/yogamoment/lite/RegisterActivity$2;

    invoke-direct {v4, p0}, Limoblife/yogamoment/lite/RegisterActivity$2;-><init>(Limoblife/yogamoment/lite/RegisterActivity;)V

    invoke-virtual {v3, v4}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 47
    return-void
.end method

.method public toHexString(Ljava/lang/String;)J
    .locals 11
    .parameter "s"

    .prologue
    const/4 v10, 0x1

    const-wide/high16 v8, 0x4030

    .line 163
    const-wide/16 v2, 0x0

    .line 164
    .local v2, result:J
    const/4 v1, 0x0

    .local v1, i:I
    :goto_0
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v4

    if-lt v1, v4, :cond_0

    .line 183
    return-wide v2

    .line 165
    :cond_0
    add-int/lit8 v4, v1, 0x1

    invoke-virtual {p1, v1, v4}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/String;->toUpperCase()Ljava/lang/String;

    move-result-object v0

    .line 166
    .local v0, cals:Ljava/lang/String;
    const-string v4, "A"

    invoke-virtual {v0, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_1

    .line 167
    const-wide/16 v4, 0xa

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v6

    sub-int/2addr v6, v1

    sub-int/2addr v6, v10

    int-to-double v6, v6

    invoke-static {v8, v9, v6, v7}, Ljava/lang/Math;->pow(DD)D

    move-result-wide v6

    double-to-long v6, v6

    mul-long/2addr v4, v6

    add-long/2addr v2, v4

    .line 164
    :goto_1
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 168
    :cond_1
    const-string v4, "B"

    invoke-virtual {v0, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_2

    .line 169
    const-wide/16 v4, 0xb

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v6

    sub-int/2addr v6, v1

    sub-int/2addr v6, v10

    int-to-double v6, v6

    invoke-static {v8, v9, v6, v7}, Ljava/lang/Math;->pow(DD)D

    move-result-wide v6

    double-to-long v6, v6

    mul-long/2addr v4, v6

    add-long/2addr v2, v4

    goto :goto_1

    .line 170
    :cond_2
    const-string v4, "C"

    invoke-virtual {v0, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_3

    .line 171
    const-wide/16 v4, 0xc

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v6

    sub-int/2addr v6, v1

    sub-int/2addr v6, v10

    int-to-double v6, v6

    invoke-static {v8, v9, v6, v7}, Ljava/lang/Math;->pow(DD)D

    move-result-wide v6

    double-to-long v6, v6

    mul-long/2addr v4, v6

    add-long/2addr v2, v4

    goto :goto_1

    .line 172
    :cond_3
    const-string v4, "D"

    invoke-virtual {v0, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_4

    .line 173
    const-wide/16 v4, 0xd

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v6

    sub-int/2addr v6, v1

    sub-int/2addr v6, v10

    int-to-double v6, v6

    invoke-static {v8, v9, v6, v7}, Ljava/lang/Math;->pow(DD)D

    move-result-wide v6

    double-to-long v6, v6

    mul-long/2addr v4, v6

    add-long/2addr v2, v4

    goto :goto_1

    .line 174
    :cond_4
    const-string v4, "E"

    invoke-virtual {v0, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_5

    .line 175
    const-wide/16 v4, 0xe

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v6

    sub-int/2addr v6, v1

    sub-int/2addr v6, v10

    int-to-double v6, v6

    invoke-static {v8, v9, v6, v7}, Ljava/lang/Math;->pow(DD)D

    move-result-wide v6

    double-to-long v6, v6

    mul-long/2addr v4, v6

    add-long/2addr v2, v4

    goto :goto_1

    .line 176
    :cond_5
    const-string v4, "F"

    invoke-virtual {v0, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_6

    .line 177
    const-wide/16 v4, 0xf

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v6

    sub-int/2addr v6, v1

    sub-int/2addr v6, v10

    int-to-double v6, v6

    invoke-static {v8, v9, v6, v7}, Ljava/lang/Math;->pow(DD)D

    move-result-wide v6

    double-to-long v6, v6

    mul-long/2addr v4, v6

    add-long/2addr v2, v4

    goto :goto_1

    .line 179
    :cond_6
    invoke-static {v0}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Integer;->intValue()I

    move-result v4

    int-to-long v4, v4

    .line 180
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v6

    sub-int/2addr v6, v1

    sub-int/2addr v6, v10

    int-to-double v6, v6

    invoke-static {v8, v9, v6, v7}, Ljava/lang/Math;->pow(DD)D

    move-result-wide v6

    double-to-long v6, v6

    mul-long/2addr v4, v6

    add-long/2addr v2, v4

    goto/16 :goto_1
.end method
